// @ 符号在build/webpack.base.conf.js 中配置 表示 'src' 路径
import request from '@/utils/request'

export default {

  pageList(page, limit) {
    return request({
      baseURL: 'http://127.0.0.1:8110',
      url: `admin/edu/tests/list/${page}/${limit}`,
      method: 'get'
    })
  },

  removeById(id) {
    return request({
      baseURL: 'http://127.0.0.1:8110',
      url: `admin/edu/tests/remove/${id}`,
      method: 'delete'
    })
  },

  save(tests) {
    return request({
      baseURL: 'http://127.0.0.1:8110',
      url: 'admin/edu/tests/save-Tests-info"',
      method: 'post',
      data: tests
    })
  },

  getById(id) {
    return request({
      baseURL: 'http://127.0.0.1:8110',
      url: `admin/edu/tests/get/${id}`,
      method: 'get'
    })
  },
  getByIds(id) {
    return request({
      baseURL: 'http://127.0.0.1:8110',
      url: `admin/edu/tests/getId/${id}`,
      method: 'get'
    })
  },
  updateById(tests) {
    return request({
      baseURL: 'http://127.0.0.1:8110',
      url: 'admin/edu/tests/update-Tests-info',
      method: 'put',
      data: tests
    })
  }
}